package com.itetchologyandenglish.home.enetity;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@ApiModel("新闻实体")
@Data
public class News {
    private Integer id;
    private String newstitle;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date newsdate;
    private Integer marketId;
    private Integer recommend;
    private String writer;
    private String newsSummary;
    private String newContent;
    private String newPicUrl;
    private Integer deflag;
}
